<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center xxzx_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub xxzx_fd0_0_higd'>
					<view class='flex flex-wrap align-center xxzx_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  xxzx_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='xxzx_fd0_0_c1_c0_higd'>{{$t('学习中心')}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end xxzx_fd0_0_c0_higd'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center xxzx_flex_1_higd" @tap.stop="handleJumpDiy"
				data-type="navigateTo" :data-url="`/pagexxzx/ctblist/ctblist`">
				<image class='xxzx_fd1_0_higd' mode="aspectFit" :src='STATIC_URL+"249.png"'></image>
				<view class='flex flex-direction align-center justify-center flex-sub xxzx_fd1_1_higd'>
					<view class='flex flex-wrap align-center'>
						<text class='xxzx_fd1_1_c0_c0_higd'>{{$t('错题本')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='xxzx_fd1_1_c1_c0_higd'>共{{error_num}}题</text>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局2flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center xxzx_flex_2_higd">
				<view class='flex flex-direction align-center justify-center xxzx_fd2_0_higd' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pageschool/school/xx/xx?type=1`">
					<image class='xxzx_fd2_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"250.png"'></image>
					<text>{{$t('我的课程')}}</text>
				</view>
				<view class='flex flex-direction align-center justify-center xxzx_fd2_0_higd' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pageschool/school/xx/xx?type=2`">
					<image class='xxzx_fd2_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"251.png"'></image>
					<text>{{$t('我的考试')}}</text>
				</view>
				<view class='flex flex-direction align-center justify-center xxzx_fd2_0_higd' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pagexxzx/zylx/zylx`">
					<image class='xxzx_fd2_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"252.png"'></image>
					<text>{{$t('自由练习')}}</text>
				</view>
				<view class='flex flex-direction align-center justify-center xxzx_fd2_3_higd' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pagexxzx/ctgg/ctgg`">
					<image class='xxzx_fd2_0_c0_higd' mode="aspectFit" :src='STATIC_URL+"253.png"'></image>
					<text>{{$t('错题巩固')}}</text>
				</view>
			</view>

			<!---flex布局2flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				error_num: ''
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.queryUserInfoFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			async queryUserInfoFunc() {
				let datauserInfo = await this.$api.get(global.apiUrls.post5c78c4772da97, {

				});

				if (datauserInfo.data.code != 1) {
					this.$message.info(datauserInfo.data.msg);
					return
				}
				let infouserInfo = datauserInfo.data;
				this.error_num = infouserInfo.data.error_num
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(255, 255, 255, 1);
		background-size: 100% auto;

		.xxzx_flex_2_higd {
			margin: 56rpx 0rpx 0rpx 0rpx;
			padding: 0rpx 32rpx 0rpx 32rpx;

			.xxzx_fd2_3_higd {
				background: #F8F8F8;
				width: 164rpx;
				height: 212rpx;
			}
		}

		.xxzx_fd2_0_higd {
			background: #F8F8F8;
			width: 164rpx;
			height: 212rpx;
			margin: 0rpx 10rpx 0rpx 0rpx;
		}

		.xxzx_fd2_0_c0_higd {
			width: 100rpx;
			height: 100rpx;
			border-radius: 0rpx;
			margin: 0rpx 0rpx 16rpx 0rpx;
		}

		.xxzx_flex_1_higd {
			margin: 160rpx auto 0rpx auto;
			width: 400rpx;
			height: 400rpx;
			position: relative;

			.xxzx_fd1_0_higd {
				width: 400rpx;
				height: 400rpx;
				border-radius: 0rpx;
				position: absolute;
			}

			.xxzx_fd1_1_higd {
				position: relative;

				.xxzx_fd1_1_c0_c0_higd {
					color: var(--benbenFontColor3);
					font-size: 48rpx;
					margin: 0rpx 0rpx 20rpx 0rpx;
				}

				.xxzx_fd1_1_c1_c0_higd {
					color: var(--benbenFontColor3);
					font-size: 28rpx;
				}
			}
		}

		.xxzx_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.xxzx_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.xxzx_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.xxzx_fd0_0_c0_higd {
			width: 120rpx;

			.xxzx_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}
	}
</style>
